//
//  WGMNavigationController.m
//  IYoker
//
//  Created by chunjian Dai on 15/12/11.
//  Copyright © 2015年 ChenJianglin. All rights reserved.
//

#import "WGMNavigationController.h"

@interface WGMNavigationController ()<UIGestureRecognizerDelegate>

@end

@implementation WGMNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // 1.导航栏
    // 1.1.操作navBar相当操作整个应用中的所有导航栏
    // 1.2.设置导航栏背景

//    [self.navigationBar setBackgroundColor:ColorWithHexString(@"49C4FC")];
    // 1.4.设置导航栏的文字
    [self.navigationBar setTitleTextAttributes:@{
                                     NSForegroundColorAttributeName : WhiteColor,
                                     NSFontAttributeName : NavigationTitleFont
                                     }];
    self.interactivePopGestureRecognizer.delegate = self;// 设置右滑返回功能（自定义返回按钮该功能就会失效）
}
//设置状态条的样式
- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleDefault;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    if ([self.view window] == nil)// 是否是正在使用的视图
    {
        self.view = nil;// 目的是再次进入时能够重新加载调用viewDidLoad函数。
    }
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
